package org.wisdom.cc.apis.controller;

import org.wisdom.annotation.WisdomController;
import org.wisdom.cc.apis.DictController;
import org.wisdom.cc.domain.repository.DictDataRepository;
import org.wisdom.vo.ResponseResult;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * 数据字典API
 *
 * @author 张智研
 * @date 2022/10/13 16:26
 **/
@Slf4j
@RequiredArgsConstructor
@WisdomController
public class DictControllerImpl implements DictController {

    private final DictDataRepository dictDataRepository;

    @Override
    public ResponseResult<String> dictType(String dictType) {
        this.dictDataRepository.findCcDictDataByDictType(dictType);
        return ResponseResult.ok();
    }
}
